<?php

#[('__get', '无权访问的成员')]
class User
{
    private $name = 'hflxhn';
    public function start()
    {
        echo "my name is hflxhn <br>";
    }

    public function __get($a)
    {
        echo "您无权{$a},请走开!!!";
    }
}

$obj = new User();
echo $obj->name;
